<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
  <head>
    <title>Posts by User</title>
  </head>

  <table width="100%">
    <td width="90%"><label style="color:green;font-size:large">Posts by <c:out value="${userName}"/></label></td>
    <td><a href="./walls">Home</a></td>
  </table>
    
  <body>
    <header></header>
    <ul>
    <c:forEach var="p" items="${post}">
        <li>
        <c:set var="userName" value="${p.userName}"/>
        <c:out value="${p.message}"/> posted in
        <a href="./wall?w=${p.wallName}"><c:out value="${p.wallName}"/></a> on 
        <c:out value="${p.date}"/>
        </li>
    </c:forEach>
    </ul>
    <footer></footer>
  </body>
</html>
